package com.szeldon.declatest.exec.events;

import java.util.Date;

/**
 * Event for end of execution of scenario's "If" part.
 * 
 * @author szeldon
 * 
 */
public class IfConditionEvaluationEndExecEvent extends TestSuiteExecEvent {

    private String evaluatedLeft;
    private String operator;
    private String evaluatedRight;
    private String ifDescription;
    private boolean evaluationResult;

    /**
     * 
     * @param scenarioId
     * @param eventDescription
     * @param eventDate
     * @param evaluatedLeft
     * @param operator
     * @param evaluatedRight
     * @param ifDescription
     * @param evaluationResult
     */
    public IfConditionEvaluationEndExecEvent(String scenarioId, String eventDescription, Date eventDate,
            String evaluatedLeft, String operator, String evaluatedRight, String ifDescription, boolean evaluationResult) {
        super(scenarioId, eventDescription, eventDate);
        this.evaluatedLeft = evaluatedLeft;
        this.operator = operator;
        this.evaluatedRight = evaluatedRight;
        this.ifDescription = ifDescription;
        this.evaluationResult = evaluationResult;
    }

    public String getEvaluatedLeft() {
        return evaluatedLeft;
    }

    public String getOperator() {
        return operator;
    }

    public String getEvaluatedRight() {
        return evaluatedRight;
    }

    public String getIfDescription() {
        return ifDescription;
    }

    public boolean getEvaluationResult() {
        return evaluationResult;
    }

    @Override
    public String toString() {
        return "IfConditionEndExecEvent [" + super.toString() + "evaluatedLeft=" + evaluatedLeft + "; operator="
                + operator + "; evaluatedRight=" + evaluatedRight + "; ifDescription=" + ifDescription
                + "; evaluationResult=" + evaluationResult + "]";
    }
}
